package org.example.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.example.entity.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 教师实体
 */
@Data
@TableName("sys_teacher")
public class TeacherEntity extends BaseEntity {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String number;//工号
    private String password;//密码
    private String username;//姓名
    private String professional;//职称
    private String degree;//学历
    private String mobile;//联系电话
    private String address;//家庭住址
    private String sex;//性别
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+08:00")
    private Date birthday;
    private String enable;//是否可用
}
